home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Icon / c / SetCol < prev    next >
Text File  |  1995-07-08  |  1KB  |  35 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for 
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #                                      
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Icon.SetCol.c
  12.     Author:  Copyright © 1994 Jason Williams
  13.     Version: 1.00 (22 March 1994)
  14.     Purpose: Set-colour routines for non-outline-font icons
  15. */
  16.  
  17. #include "DeskLib:Wimp.h"
  18. #include "DeskLib:WimpSWIS.h"
  19. #include "DeskLib:Icon.h"
  20.  
  21.  
  22. extern void Icon_SetForeColour(window_handle window, icon_handle icon,
  23.                                int wimpcolour)
  24. {
  25.   Wimp_SetIconState(window, icon, (wimpcolour & 0x0f) << 24, 0x0f000000);
  26. }
  27.  
  28.  
  29. extern void Icon_SetBackColour(window_handle window, icon_handle icon,
  30.                                int wimpcolour)
  31. {
  32.   Wimp_SetIconState(window, icon, (wimpcolour & 0x0f) << 28, 0xf0000000); 
  33. }
  34.  
  35.